#!/usr/bin/env python3
# encoding: utf-8

"""
@version: 1.0
@author: 周永波
@file: dbOpt.py
@time: 2020/8/13 9:34
"""
from demoApp.setting.database import db
from demoApp.setting.ret import views_rest

dbOptViews = views_rest("dbOptViews", __name__, url_prefix='/dbOpt')


@dbOptViews.route("/create_table")
def create_all():
    db.create_all()
    return 'create_all'

@dbOptViews.route("/drop_table")
def drop_all():
    db.drop_all()
    return 'drop_all'

def query_table():
    # db.query
    pass


